package com.zyd.dao;

import com.zyd.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface UserDao extends JpaRepository<User,Long> {

    List<User> findByUsernameAndPassword(String name, String password);



    User findByUsername(String username);
}
